# v441 - Lifecycle Audit-Note Filters and Export Polish ## Decision Reviewed v440 Workspace Billing warning copy/status coverage hardening, then proceeded with lifecycle audit-note filters and export polish. This was the safer next step because the soft warning copy is now clear enough for Workspace Admins, but Super Admin still needed stronger audit-note coverage views, filters, and exports before any payment collection, customer portal sessions, webhook subscription mutation, trial-to-paid conversion, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access. ## Product changes - Extended `SubscriptionLifecycleBillingSyncService` with lifecycle audit-note state per workspace row. - Added row-level audit fields for review-needed state, lifecycle audit-note presence, missing-note state, stale-note state, latest note age, audit export group, and warning acknowledgement counts. - Added audit-note coverage summary data grouped by readiness state and lifecycle state. - Updated the Super Admin Subscription lifecycle panel with a dedicated **Lifecycle audit-note coverage** section. - Added a new **Audit notes** filter to the lifecycle review panel for: - needs note; - has note; - stale note; - no note needed; - has warning acknowledgement; - no warning acknowledgement. - Extended lifecycle row search so Super Admin can search audit state, audit group, latest lifecycle note, and latest warning acknowledgement title. - Expanded the lifecycle CSV export with audit-note state, note count, latest note text, latest note age, warning acknowledgement count, and latest warning acknowledgement title. - Added a filtered audit-note CSV export. - Added a focused CSV export for rows still needing lifecycle audit notes. - Expanded the lifecycle audit-note GET route so Super Admin can query notes by workspace, readiness status, lifecycle status, search text, and limit. - Kept audit notes stored in existing `SuperAdminAuditEvent` records. ## Visible result ### In Super Admin At `/admin/subscriptions`, the **Subscription lifecycle** panel now has a clearer audit-note coverage area. Super Admin can quickly see how many review rows have notes, which rows still need notes, whether any notes are older than 30 days, and how note coverage breaks down by lifecycle and readiness status. Super Admin can also filter workspace lifecycle rows by audit-note state and export either the current filtered audit-note history or only the rows still needing notes. ### In Workspace Admin No Workspace Admin workflow changed. The v440 soft Subscription notice remains plain-language and warning-only. ### In Dispatch Workspace No dispatch workflow is blocked. ### In Driver, Broker, Company/Fleet, and Carrier Workspaces No workflow or access rule changed. ## Guardrails preserved - No payment collection was activated. - No customer portal session creation was activated. - No webhook subscription mutation was activated. - No trial-to-paid conversion was activated. - No billing status mutation was activated. - No hard billing gates were activated. - No broker distribution limits changed. - No owned portal rules changed. - No internal load-board access changed. - Warning acknowledgements still do not mute warnings. - Lifecycle audit notes still do not mutate subscriptions. - Audit-note filtering and exports are review-only. ## Prisma No Prisma schema changes were made. ## Next recommended check-in ```text Current baseline on server is v441 review v441 lifecycle audit-note filters and export polish, then decide whether to proceed with v442 warning acknowledgement filters and acknowledgement context hardening or first harden lifecycle audit-note stale-review thresholds before changing payment collection, customer portal sessions, webhook subscription mutation, trial-to-paid conversion, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access ```